﻿// --------------------------------------------------------------------------------------------------------------------
// <summary>
//   Defines the CustomBizUnitExecutionException type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace TRlib.BizUnit
{
    /// <summary>
    /// Throw this when a custom BizUnit step needs to throw an application exception to cancel a test run
    /// </summary>
    [System.Serializable()]
    public class CustomBizUnitExecutionException : System.Exception
    {
        /// <summary>
        /// Initializes a new instance of the PolicyHubException class
        /// </summary>
        /// <param name="errorMessage">Custom message</param>
        public CustomBizUnitExecutionException(string errorMessage)
            : base(errorMessage)
        {
        }

        // Constructor needed for serialization when exception 
        // propagates from a remoting server to the client.
        protected CustomBizUnitExecutionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
        }
    }
}
